Ubuntu 14.04
Sponsored Link

OpenStack Liberty : Configure Ceilometer#1
2015/12/29
 
Configure OpenStack Metering Service (Ceilometer).
This example shows to install Metering Services on the existing environment like follows.
For example, install and configure Metering Services on the Network Node.
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |            |            |    [ Network Node ]    |
|     Keystone     |10.0.0.30   |   10.0.0.50|    DHCP,L3,L2 Agent    |
|      Glance      |------------+------------|     Metadata Agent     |
|     Nova API     |eth0        |        eth0|   Ceilometer Services  |
|  Neutron Server  |            |            |                        |
+------------------+            |            +------------------------+
                            eth0|10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |    Nova Compute    |
                      |      L2 Agent      |
                      | Ceilometer-Compute |
                      +--------------------+

 
First, Configure Control Node on this section.
[1] Add a user or endpoint for Ceilometer on existing Keystone Server.
# add ceilometer user

root@dlp ~(keystone)#
openstack user create --domain default --project service --password servicepassword ceilometer

+--------------------+----------------------------------+
| Field              | Value                            |
+--------------------+----------------------------------+
| default_project_id | ba3f5997c2474c13b36e6f6bc47a264c |
| domain_id          | default                          |
| enabled            | True                             |
| id                 | be31ee8a1f4d4a1095b4fe0c9c02c6ff |
| name               | ceilometer                       |
+--------------------+----------------------------------+

# add ceilometer user to admin role

root@dlp ~(keystone)#
openstack role add --project service --user ceilometer admin
# add service entry for ceilometer

root@dlp ~(keystone)#
openstack service create --name ceilometer --description "Openstack Telemetry" metering

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Openstack Telemetry              |
| enabled     | True                             |
| id          | fd3d6af25b31442ea6008d1ef723287d |
| name        | ceilometer                       |
| type        | metering                         |
+-------------+----------------------------------+

# define IP of a node for installing Metering services

root@dlp ~(keystone)#
export ceilometer_api=10.0.0.50
# add endpoint for ceilometer (public)

root@dlp ~(keystone)#
openstack endpoint create --region RegionOne metering public http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | 248a01bb362f4979b9cc78c1fa1baa8d |
| interface    | public                           |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | fd3d6af25b31442ea6008d1ef723287d |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+

# add endpoint for ceilometer (internal)

root@dlp ~(keystone)#
openstack endpoint create --region RegionOne metering internal http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | 7cafd93fa3344c09a0196fb6bd1a7082 |
| interface    | internal                         |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | fd3d6af25b31442ea6008d1ef723287d |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+

# add endpoint for ceilometer (admin)

root@dlp ~(keystone)#
openstack endpoint create --region RegionOne metering admin http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | b9ba337a6c6d4ac2b0c44484742254ab |
| interface    | admin                            |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | fd3d6af25b31442ea6008d1ef723287d |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+
 
Tweet